import http from '@/http/http'
import { DateListParams,DetailParams } from '@/views/family/interface/interface'
import {GetUrl} from '@/interface/index'
enum Api {
  dateList = '/manage/admin/extraPerson/dateList',
  detail='/manage/admin/extraPerson/detail',
  getAreaList='/manage/admin/sysAreaInfo/getAreaList'
}
//详情-获取时间下拉列表
export const dateListApi = async (params: DateListParams) => {
  return await http.post(Api.dateList, params)
}
//详情
export const detailApi = async (params: DetailParams) => {
  return await http.post(Api.detail, params)
}
//全国区域陈常量数据查询
export const getAreaTreeApi = async (params: GetUrl) => {
  return await http.getUrl(Api.getAreaList, params)
}